#include "Widget.h"

#include <QApplication>
#include <QMessageBox>
#include <QStandardPaths>
#include <QProcess>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QString path = qApp->applicationDirPath();
    if(!QFile(path + "./backend.exe").exists()){
        QMessageBox::information(NULL, "Error", "No \"backend.exe\"");
        a.exit();
    }else{
        Widget w;
        w.show();
        return a.exec();
    }
}
